<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DSP</title>
<script src="javascript?type=Com"></script>
<%@include file="../common/link.jsp"%>
<script>
	var config = {
		url : 'insure_programs'
	}
	var colModel = [{
		title : '保险名称',
		field : 'insureName',
		width : 60,
		//sortable : true,
		align : 'left',
		formatter : function(value, rowData, rowIndex) {
			return "<a href='#' onclick='javascript:DSP.update("+rowData.id+");'>"+value+"</a>";
		}
	}, {
		title : '拼音',
		field : 'pyCode',
		width : 110,
		//sortable : true,
		align : 'left'
	} ];
	
	function update(data){
		$_("id").value = data.id;
		$_("insureName").value = data.insureName;
		$_("pyCode").value = data.pyCode;
	}
</script>
</head>
<body>
<div id="dialog_div" class="easyui-window" title="社保配置信息-公司"
	collapsible="false" minimizable="false" maximizable="false"
	icon="icon-save"
	style="width: 310px; height: 600px; left: 200px; top: 10px; padding: 5px; background: #fafafa;">
	<div class="easyui-layout" fit="true">
		<div region="center" border="false"
			style="padding: 10px; background: #fff; border: 1px solid #ccc;">
			<form action="" id="form1">
				<input type="hidden" name="id" id="id" value="" />
				<input type="hidden" id="pyCode" name="pyCode" />
				<table width="100%" cellspacing="3" cellpadding="3" bordercolor="#DEDEDC" border="0" id="id-form">
					<tr>
						<th class="td_right" valign="middle">项目名称:</th>
						<td><input type="text" id="insureName" name="insureName" /></td>
					</tr>
				</table>
			</form>
		</div>
		<div region="south" border="false"
				style="text-align: right; height: 30px; line-height: 30px;">
				<a id="btnEp" class="easyui-linkbutton" icon="icon-ok"
					href="javascript:DSP.send();"> 确定</a> <a id="btnCancel"
					class="easyui-linkbutton" icon="icon-cancel"
					href="javascript:DSP.close();">取消</a>
			</div>
	</div>
</div>
<table id="xDataGrid"></table>
	<script type="text/javascript">
		$(function() {
			DSP.open(false,220,400,"");
			DSP.grid(colModel, false ,null,"社保项目配置");
		});
	</script>
</body>
</html>
